You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLMtxVec Class > TOpenCLMtxVec Methods > TOpenCLMtxVec.PowerVec Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLMtxVec.PowerVec Method

Raises Base object elements to Exponent object elements power.

Syntax
C#
Visual Basic
public TOpenCLMtxVec PowerVec([In] TOpenCLMtxVec Base, [In] TOpenCLMtxVec Exponent);

Raises Base elements to Exponent elements power. Only positive exponents can be handled if exponent object TOpenCLBase.ComplexComplexproperty is True.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVec a,b,c; MtxVec.CreateIt(out a, out b, out c); try { a.CopyCplxFromArray( new double[] {1,2,3,4}); b.CopyCplxFromArray( new double[] {3,2,2,2}); c.PowerVec(a,b); } finally { MtxVec.FreeIt(ref a, ref b, ref c); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!